package diolag


import activity.ZoneActivity
import android.app.Dialog
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.Gravity
import android.view.WindowManager
import android.widget.TextView
import com.wd.rim.R
import com.wd.rim.fragment.SquareFragment

class JoinActivity (context: Context): Dialog(context) {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_join)

        initView()

    }
    private fun initView(){
        val window = this.window
        if(window!=null){
            window.setGravity(Gravity.BOTTOM)
            window.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
            val lp=window.attributes
            lp.width= WindowManager.LayoutParams.MATCH_PARENT
            lp.height= WindowManager.LayoutParams.WRAP_CONTENT
        }

    }
}